package com.huage.courseplatform.satoken.model.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.huage.courseplatform.satoken.model.entity.Role;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;


@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="登录响应参数",description="登录响应参数")
public class LoginVO implements Serializable {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "用户昵称")
    private String userName;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "微信openid凭证")
    private String openId;

    @ApiModelProperty(value = "用户头像")
    private String headImg;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "用户id")
    private String id;

    @ApiModelProperty(value = "登录凭证")
    private String authorization;

    @ApiModelProperty(value = "用户状态 0：账号注销，1：正常使用，2：封禁")
    private Integer status;

    @ApiModelProperty(value = "权限列表")
    @TableField(exist = false)
    private List<Role> roleList;

}
